//
//  BRCacheManager.h
//  BrezzeSaaS
//
//  Created by IOS on 2021/8/31.
//  Copyright © 2021 Brezze GWG. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface BRCacheManager : NSObject

+ (BRCacheManager *)share;

/// 保存
/// @param obj 对象
/// @param key key
- (void)save:(id<NSCoding>)obj tableName:(NSString *)key;

/// 获取缓存对象
/// @param key key
- (id<NSCoding>)getValue:(NSString *)key;

/// 删除指定表内容
/// @param key key
- (void)removeObj:(NSString *)key;

/// 查询是否有值
/// @param key key
- (BOOL)hasValueForKey:(NSString *)key;

@end

NS_ASSUME_NONNULL_END
